package com.backend.demo.util;

import org.hibernate.cfg.Configuration;

public class HibernateConfigurationHolder {
	private static AtomicFinalObject<Configuration> configurationHold = new AtomicFinalObject<Configuration>();

	public static Configuration getConfiguration() {
		return configurationHold.get();
	}
	
	public static void setConfiguration(Configuration configuration){
		HibernateConfigurationHolder.configurationHold.set(configuration);
	}
	
}
